Interface (object-oriented programming)
part 6/6 · 9.9 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Notes
cite-note-1a. ↑ Usage of these terms varies by programming language. Java and languages derived from it tend to use "interface", while "protocol" is generally more popular elsewhere.
References
cite-note-csharp-learn-21. ↑ "Interfaces - define behavior for multiple types". learn.microsoft.com. Retrieved 16 November 2022.
cite-note-swift-24h-32. ↑ citerefmiller2015Miller, BJ (2015). Sams Teach Yourself Swift in 24 hours. Indianapolis, Indiana. p. 263. ISBN 978-0-672-33724-6. Any type can adopt a protocol to help give it extra functionality to accomplish a particular set of tasks.{{cite book}}: CS1 maint: location missing publisher (link)
cite-note-python-iter-43. ↑ "Glossary — Python 3.11.0 documentation". docs.python.org. Retrieved 16 November 2022.
cite-note-54. ↑ "Traits - The Rust Reference". January 2024.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────